package com.hu.network.http.request;

import android.support.annotation.WorkerThread;

import java.io.IOException;

import com.hu.network.http.bean.InnerResponseResult;
import com.hu.network.http.exception.NetException;

/**
 * 说明：
 *
 * @author ： hucanhua
 * @date ： 2017/10/25
 */
@WorkerThread
public interface IHttpRequest<T> {

    /**
     * 执行方法
     * @param innerResponseResult 结果bean
     * @return 结果bean
     * @throws IOException IOException
     * @throws NetException NetException
     * @throws IllegalAccessException IllegalAccessException
     */
    void execute(InnerResponseResult<T> innerResponseResult) throws IOException, NetException, IllegalAccessException;
}
